package jp.seraph.same.view.gui.tree;

import jp.seraph.same.controller.MotionElementController;
import jp.seraph.same.model.MotionElementModel;

public class ElementObject implements TreeUserObject {
    public ElementObject(MotionElementModel aElement, MotionElementController aController){
        mElement = aElement;
        mController = aController;
    }

    private MotionElementModel mElement;
    private MotionElementController mController;

    public MotionElementModel getElement(){
        return mElement;
    }

    public MotionElementController getController(){
        return mController;
    }

    public String getModelName() {
        return mElement.getName();
    }

    @Override
    public String toString() {
        return mElement.getName();
    }
}
